home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacFormat 1995 January
/
macformat-020.iso
/
Shareware City
/
Developers
/
Think C dcmd 1.0.1 ƒ
/
Think Put Lib source
/
__DecToText.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1994-06-12
|
174 b
|
12 lines
|
[
TEXT/KAHL
]
void __DecToText (unsigned long dec, char* str )
{
int n;
char* digits = "0123456789";
for ( n = 9; n >= 0; n-- )
{
str[n] = digits[dec % 10];
dec /= 10;
}
}